total=int(input("请输入年用水量："))
if total <=360:
        price=2.95*total
elif total<=540:
        price=2.95*360+3.54*(total-360)
else:
         price=2.95*360+3.54*(540-360)+4.43*(total-360)
print("年用气量为{0}立方米的用户需缴纳气费为{1}元".format(total,price))
